﻿using MHI.DeviceManager.Data;
using MHI.DeviceManager.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;

namespace MHI.DeviceManager.Business
{
    internal class DevDeviceTList: BaseWritableEntities<DevDeviceT>, IDevDeviceTList
    {
        private WFModule _module;
        private DevDeviceTQueryDAO _queryDao;
        private DevDeviceTWritingDAO _writeDao;

        public DevDeviceTList(DevDeviceTQueryDAO querydao, DevDeviceTWritingDAO writingDao, WFModule module)
            : base(querydao, writingDao)
        {
            this._queryDao = querydao;
            this._writeDao = writingDao;
            this._module = module;
        }

        public List<DevDeviceT> GetDevicesByLocation(int locationId)
        {
            return _queryDao.GetDevicesByLocation(locationId).ToList<DevDeviceT>();
        }
    }
}
